==========================================================================
H&K SL8
Converted from a Fallout 3 mod by X42.0, Iron Sights model rigged by X42.0
Credits for model, textures and sounds goes to whoever created them!
==========================================================================

Note: I am assuming for the most part that the reader does not know how to install mods for GTAIV, so I try to explain each step very thoroughly to avoid any confusion!

==================
INSTALLING THE GUN
==================

	Download OpenIV (google it) if you don't have it
	Run OpenIV, go to models>cdimages at the left, and double click on weapons.img at the right
	Click on Edit Mode near the top, or else you can't change anything
	Navigate to the folder my mod is in, and decide which color option you want
	drag the w_psg1.wdr and w_psg1.wtd that you like into the OpenIV window
	Double click on w_psg1.wdr and the gun should show up correctly. If not, repeat step 4 because something went wrong.
	

You now have the gun model and textures installed, but you aren't done yet!


=====
SOUND (If you don't care about/are too lazy to install the gunshot sound skip down to WEAPONINFO.)
=====

	Download GTA-IVaud and run it
	Follow the SparkIV steps above to get to RESIDENT\WEAPONS.ivaud and EXPORT it (keep this window open for later)
	Open the exported WEAPONS.ivaud in GTA-IVaud
	Click on SNIPERRIFLE_SHOT2_L.wav, then click Edit>Import WAV, and navigate to where the SL8 folder is
	Double click on SNIPERRIFLE_SHOT2_L.wav.wav.wav and click yes to any messages that pop up
	Repeat for SNIPERRIFLE_SHOT2_R.wav
	Save
	Now you have to Import the recently saved WEAPONS.ivaud in SparkIV, and remember to SAVE!


==========
WEAPONINFO
==========

Go to Common\Data\Weaponinfo.xml, make a copy of it for backup, right click on it and hit properties, untick "Read Only" and hit apply. Open it in the text editor of your choice (Notepad++ ftw). Scroll down until you find <weapon type="SNIPERRIFLE">. 
Replace all the lines from <weapon type="SNIPERRIFLE"> to </weapon> with one of the following, based on your choice of the Scoped or Iron Sights option:

=============
SCOPED VERSION
=============

	<weapon type="SNIPERRIFLE">
		<data slot="SNIPER" firetype="DELAYED_HIT" damagetype="BULLET" group="RIFLE_SNIPER" targetrange="50.0" weaponrange="750.0" clipsize="30" ammomax="150" timebetweenshots="400">
			<damage base="90" fps="100" networkplayermod="2.0" networkpedmod="1.0"/>
			<physics force="09.0"/>
			<reload time="2066" fasttime="2066" crouchtime="2066"/>

			<aiming accuracy="10.0" accuracyfps="0.0">
				<offset x="0.16" y="1.0" z="0.55"/>
				<crouchedoffset x="0.16" y="1.0" z="0.12"/>
				<reticule standing="0.6" ducked="0.5" scale="0.05"/>
			</aiming>

			<pickup regentime="360000" ammoonstreet="20"/>

			<controller>
				<rumble duration="120" intensity="0.3"/>
			</controller>

			<flags>
				<flag>GUN</flag>
				<flag>2HANDED</flag>
				<flag>ANIM_RELOAD</flag>
				<flag>CAN_FREE_AIM</flag>
				<flag>FIRST_PERSON</flag>
				<flag>ANIM_CROUCH_FIRE</flag>
			</flags>
		</data>

		<assets model="w_psg1">
			<anim group="gun@rifle">
				<rates firerate="1.35"/>
			</anim>
		</assets>
	</weapon>

===================
IRON SIGHTS VERSION
===================

	<weapon type="SNIPERRIFLE">
		<data slot="SNIPER" firetype="DELAYED_HIT" damagetype="BULLET" group="RIFLE_SNIPER" targetrange="50.0" weaponrange="750.0" clipsize="30" ammomax="50" timebetweenshots="400">
			<damage base="90" fps="100" networkplayermod="2.0" networkpedmod="1.0"/>
			<physics force="09.0"/>
			<reload time="2066" fasttime="2066" crouchtime="2066"/>

			<aiming accuracy="10.0" accuracyfps="0.0">
				<offset x="0.16" y="1.0" z="0.55"/>
				<crouchedoffset x="0.16" y="1.0" z="0.12"/>
				<reticule standing="0.6" ducked="0.5" scale="0.05"/>
			</aiming>

			<pickup regentime="360000" ammoonstreet="20"/>

			<controller>
				<rumble duration="120" intensity="0.3"/>
			</controller>

			<flags>
				<flag>GUN</flag>
				<flag>2HANDED</flag>
				<flag>ANIM_RELOAD</flag>
				<flag>CAN_FREE_AIM</flag>
				<flag>ANIM_CROUCH_FIRE</flag>
			</flags>
		</data>

		<assets model="w_psg1">
			<anim group="gun@rifle">
				<rates firerate="1.35"/>
			</anim>
			<effects>
				<muzzle fx="muz_machine"/>
				<shell fx="weap_ejected_rifle"/>
			</effects>
		</assets>
	</weapon>